while True:
    try:
        op = input("请输入算式（如：1+3）：")
        if '+' in op:
            op = op.split('+')
            print(int(op[0]) + int(op[1]))
        elif '-' in op:
            op = op.split('-')
            print(int(op[0]) - int(op[1]))
        elif '*' in op and '**' not in op:
            op = op.split('*')
            print(int(op[0]) * int(op[1]))
        elif '/' in op and '//' not in op:
            op = op.split('/')
            print(int(op[0]) / int(op[1]))
        elif '**' in op:
            op = op.split('**')
            print(int(op[0]) ** int(op[1]))
        elif '//' in op:
            op = op.split('//')
            print(int(op[0]) // int(op[1]))
        elif op == 'C':
            print("感谢您使用本计算器！")
            break
        else:
            raise Exception("请输入正确的格式（如：2+3）")
    except ZeroDivisionError:
        print("除数不能为0！")
    except Exception as e:
        print(e)